.post-body {
  font-family: $font-family-posts;
  word-wrap();

  +desktop-large() {
    font-size: $font-size-large;
  }

  +desktop() {
    text-align: unquote(hexo-config('text_align.desktop'));
  }

  +tablet-mobile() {
    text-align: unquote(hexo-config('text_align.mobile'));
  }

  h1, h2, h3, h4, h5, h6 {
    // Supported plugins: hexo-renderer-markdown-it hexo-renderer-marked
    .header-anchor, .headerlink {
      border-bottom-style: none;
      color: inherit;
      float: right;
      font-size: $font-size-small;
      margin-left: 10px;
      opacity: 0;

      &::before {
        font-family-icons('\f0c1');
      }
    }

    &:hover {
      .header-anchor, .headerlink {
        opacity: .5;

        &:hover {
          opacity: 1;
        }
      }
    }
  }

  .exturl .fa {
    font-size: $font-size-small;
    margin-left: 4px;
  }

  // For fancybox and pandoc
  .image-caption, img + figcaption, .fancybox + figcaption {
    color: $grey-dark;
    font-size: $font-size-small;
    font-weight: bold;
    line-height: 1;
    margin: -15px auto 15px;
    text-align: center;
  }

  iframe, img, video, embed {
    margin-bottom: 20px;
  }

  .video-container {
    height: 0;
    margin-bottom: 20px;
    overflow: hidden;
    padding-top: 75%;
    position: relative;
    width: 100%;

    iframe, object, embed {
      height: 100%;
      left: 0;
      margin: 0;
      position: absolute;
      top: 0;
      width: 100%;
    }
  }
}

.tips {
  padding-left: 10px;
  background-color rgba(52,152,219,.3);
  border-left 4px solid rgb(52,152,219);
  color: darken(rgb(52,152,219),20%)
}

.success {
  padding-left: 10px;
  background-color rgba(46,204,113,.3);
  border-left 4px solid rgb(46,204,113);
  color: darken(rgb(46,204,113),20%)
}

.warning {
  padding-left: 10px;
  background-color rgba(241,196,15,.3);
  border-left 4px solid rgb(241,196,15);
  color: darken(rgb(241,196,15),20%)
}

.danger {
  padding-left: 10px;
  background-color rgba(231,76,60,.3);
  border-left 4px solid rgb(231,76,60);
  color: darken(rgb(231,76,60),20%)
}
